#include "SMPPItsReplyType.hpp"

using namespace smpp::pdu;

ItsReplyType::ItsReplyType(const quint8 nValue):
TLV(TLVtags::TAG_ITS_REPLY_TYPE,1),_Value(nValue){}

ItsReplyType::ItsReplyType(const ItsReplyType &nItsReplyType):
TLV(nItsReplyType),_Value(nItsReplyType.getValue()){}

bool ItsReplyType::operator ==(const ItsReplyType &nItsReplyType) const{
	return (TLV::operator == (nItsReplyType) && 
			_Value == nItsReplyType.getValue());
}

bool ItsReplyType::operator !=(const ItsReplyType &nItsReplyType) const{
	return !this->operator == (nItsReplyType);
}

ItsReplyType &ItsReplyType::operator = (
	const ItsReplyType &nItsReplyType){
	if(*this == nItsReplyType)
		return *this;
	TLV::operator = (nItsReplyType);
	_Value = nItsReplyType.getValue();
	return *this;
}

void ItsReplyType::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 ItsReplyType::getValue() const{
	return _Value;
}
